package com.business.bean.record;

import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import net.sf.rose.jdbc.bean.ModelBean;
import net.sf.rose.jdbc.bean.annotation.Column;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.Type;
import net.sf.rose.jdbc.bean.annotation.View;

/**
 * @author fengjian E-mail: 9110530@qq.com
 * @version 创建时间：2019年9月21日
 */
@Setter
@Getter
@Table(name = "REC_MEAL_ORDER", description = "订餐记录表")
@View(name = "REC_MEAL_ORDER_VIEW", description = "订餐记录视图")
public class MealOrderRecord extends ModelBean {

	@Column(pk = true, type = Type.定长文本, description = "记录编号", canNull = false, size = 32, policy = "UUID")
	private String recordID = null;

	@Column(type = Type.定长文本, description = "工程调度编号", size = 32)
	private String dispatchWorkID = null;

	@Column(type = Type.定长文本, description = "工程编号", size = 32)
	private String engineerID = null;

	@Column(type = Type.变长文本, description = "工程名称", size = 200)
	private transient String engineerName = null;

	@Column(type = Type.定长文本, description = "所属项目编号", size = 32)
	private String projectID = null;

	@Column(type = Type.变长文本, description = "项目名称", size = 200)
	private transient String projectName = null;

	@Column(type = Type.定长文本, description = "用户编号", size = 32)
	private String userID = null;

	@Column(type = Type.变长文本, description = "用户姓名", size = 50)
	private transient String userName = null;

	@Column(type = Type.日期时间, description = "订餐日期")
	private Date ordertDate = null;

	/** 1：早餐；2：中餐；3：晚餐 */
	@Column(type = Type.数字整型, description = "订餐类型")
	private int orderType = 0;

	@Column(type = Type.数字整型, description = "工程总人数")
	private int workerSum = 0;

	@Column(type = Type.数字整型, description = "自购数量")
	private int selfPurchaseSum = 0;

	@Column(type = Type.数字整型, description = "申请数量")
	private int applySum = 0;

	/** 生效：1；无效：2 */
	@Column(type = Type.数字整型, description = "状态")
	private int status = 0;
}
